using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace moDb_prototype
{
    public class Database
    {
        //static Database()
        //{
        //    connection = new SqlConnection(connectionString);
        //}

        private static string connectionString;

        public static string ConnectionString
        {
            get { return connectionString; }
            set 
            {
                connectionString = value;
                connection = new SqlConnection(connectionString);                 
            }
        }
	

        private static IDbConnection connection;

        public static IDbConnection Connection
        {
            get { return connection; }
            set 
            {                
                connection = value;
            }
        }

        public IDbCommand GetCommand()
        {
            return connection.CreateCommand();
        }
    }
}
